import static org.junit.Assert.*;

import org.junit.Test;

/**
 * 
 */

/**
 * @author hck
 *
 */
public class ConfigurationHandlerTest {


	/**
	 * .
	 */
	@Test
	public void testMakeCoverateTestHappyForConfigurationHandlerException()  {
		ConfigurationHandlerException cDummy = new ConfigurationHandlerException();
			assertTrue("For the sake of getting full coverage.", Boolean.TRUE);
	}

	/**
	 * .
	 */
	@Test
	public void testSetBooleanTrue()  {
		ConfigurationHandler cConfigHandler = new ConfigurationHandler();
			try {
				cConfigHandler.SetBooleanTrue("Tulle");
			} catch (ConfigurationHandlerException e) {
				fail("ValidName");
			}
			assertTrue("ValidName", Boolean.TRUE);
	}

	
	
	/**
	 * Test method for {@link ConfigurationHandler#IsValidVariableName(java.lang.String)}.
	 */
	@Test
	public void testValidateName() {
		ConfigurationHandler cConfigHandler = new ConfigurationHandler();
		try {
			cConfigHandler.ValidateName("ThisVarExists");
		} catch (ConfigurationHandlerException e) {
			fail("ValidName");
		}
		assertTrue("ValidName", Boolean.TRUE);
	}

	/**
	 * .
	 * @throws ConfigurationHandlerException 
	 */
	@Test(expected=ConfigurationHandlerException.class)
	public void testValidateName_null_pointer_exception() throws ConfigurationHandlerException {
		ConfigurationHandler cConfigHandler = new ConfigurationHandler();
			cConfigHandler.ValidateName(null);
	}
	
	/**
	 * .
	 * @throws ConfigurationHandlerException 
	 */
	@Test(expected=ConfigurationHandlerException.class)
	public void testValidateName_empty_parm_exception() throws ConfigurationHandlerException {
		ConfigurationHandler cConfigHandler = new ConfigurationHandler();
			cConfigHandler.ValidateName("");
	}

}
